<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增订单设置')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-orderSetting-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">秒杀订单超时关闭时间(分)：</label>
                <div class="col-sm-8">
                    <input name="flashOrderOvertime" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">正常订单超时时间(分)：</label>
                <div class="col-sm-8">
                    <input name="normalOrderOvertime" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">发货后自动确认收货时间：</label>
                <div class="col-sm-8">
                    <input name="confirmOvertime" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">自动完成交易时间，不能申请售后：</label>
                <div class="col-sm-8">
                    <input name="finishOvertime" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单完成后自动好评时间：</label>
                <div class="col-sm-8">
                    <input name="commentOvertime" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">所属店铺：</label>
                <div class="col-sm-8">
                    <input name="storeId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">每天提醒发货次数：</label>
                <div class="col-sm-8">
                    <input name="remindShipCount" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "mall/orderSetting"
        $("#form-orderSetting-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-orderSetting-add').serialize());
            }
        }
    </script>
</body>
</html>